import type { ItemResult } from "@/types/search";

type CnType = ItemResult["type"]

export default function getCnTypeFromEnType(enType: string): CnType {
  switch (enType) {
    case "items":
      return "物品"
    case "effects":
      return "Buff/Debuff"
    case "enchantments":
      return "附魔"
    case "biomes":
      return "生物群系"
    case "blocks":
      return "方块"
    case "entities":
      return "实体"
  }
  return "其他"
}